const state = {
  authorizeRoleList: [],
  authorizeUserList: [],
  metricsTreeName: '', // 指标树名称
  metricsDescript: '', // 指标树描述
  metricsPublish: false // 指标树是否发布
};

const mutations = {
  changeAuthorizeRoleList(state: any, data: any) {
    state.authorizeRoleList = data;
  },

  changeAuthorizeUserList(state: any, data: any) {
    state.authorizeUserList = data;
  },
  getMetricsTreeName(state: any, data: any) {
    state.metricsTreeName = data;
  },
  getMetricsDescript(state: any, data: any) {
    state.metricsDescript = data;
  },
  getMetricsPublish(state: any, data: any) {
    state.metricsPublish = data;
  }
};

const actions = {};

export default {
  namespaced: true,
  state,
  mutations,
  actions
};
